﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
  <class name="Com.Phyfun.Business.Category, Com.Phyfun.Business" table="Category">
    <id name="Id" type="Int32" unsaved-value="null">
      <column name="Id" length="4" sql-type="int" not-null="true" unique="true" index="PK_Category"/>
      <generator class="native" />
    </id>
    <property name="CategoryName" type="String">
      <column name="CategoryName" length="100" sql-type="nvarchar" not-null="false"/>
    </property>
    <property name="FlagDeleted" type="Boolean">
      <column name="FlagDeleted" length="1" sql-type="bit" not-null="false"/>
    </property>
    <property name="LogDateTime" type="DateTime">
      <column name="LogDateTime" length="8" sql-type="datetime" not-null="false"/>
    </property>
    <property name="Flag" type="Int32">
      <column name="Flag" length="4" sql-type="int" not-null="false"/>
    </property>
    <bag name="CategoryGames" inverse="true" lazy="true" cascade="all-delete-orphan">
      <key column="CategoryId"/>
      <one-to-many class="Com.Phyfun.Business.Game, Com.Phyfun.Business"/>
    </bag>
  </class>
</hibernate-mapping>
